package com.ls.utils;

public enum ResultCode {


    /**
     * 成功返回码
     */
    OK("操作成功", 0),

    /**
     * customer模块错误信息
     */
    //金额无效
    THE_MODIFIED_AMOUNT_IS_INVALID("非法的金额信息", 30001),

    //查无此用户
    CHECK_FOR_NO_SUCH_USER("查无此用户", 30002),

    //扣费余额不足
    NOT_SUFFICIENT_FUNDS("用户余额不足",30003),

    INTERFACE_IS_OVERDUE("当前接口已过期",30004),


    /**
     * 权限错误信息
     */
    ERROR_NO_AUTHORIZATION_CODE("当前用户无权限",40001),
    ERROR_TOKEN_EXCEEDED_CODE("当前token过期",40002),
    ERROR_NO_TOKEN_CODE("请求无token",40003);


    private final String desc;

    private final int code;


    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }

    ResultCode(String desc, int code) {
        this.desc = desc;
        this.code = code;
    }
}
